
             
/**
 * 
 *
 * @File name:  GetTFixedAssetsDetailAction.java   根据主键查询【资产详细信息:T_FIXED_ASSETS_DETAIL】
 * @Create on:  2011-10-31 09:21:937
 * @Author   :  许福辉
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 */
           
        
package com.boho.estates.usual.action;

            
import java.sql.Connection;

import cn.boho.framework.actions.ActionImp;
import cn.boho.framework.context.ActionContext;
import cn.boho.framework.po.DynaBeanMap;
import cn.boho.framework.service.MessageService;

import com.boho.estates.usual.service.UsualService;

public class GetTFixedAssetsDetailAction extends ActionImp {
	private Connection con=null;
	@Override
	protected void doException(ActionContext atx, Exception ex) {
		atx.setErrorContext("BOHO_COMMON_1004", MessageService.getMessage("BOHO_COMMON_1004"),"【资产详细信息】", ex);
	}
	@Override
	protected int performExecute(ActionContext atx) throws Exception {
		Integer id = atx.getIntegerValue("ID",-1);
		String BARCODE = atx.getStringValue("BARCODE","");
		DynaBeanMap dbm = UsualService.getTFixedAssetsDetailByPk(con,id,BARCODE);
		atx.setObjValue("T_FIXED_ASSETS_DETAIL", dbm);
		return 1;
	}
	@Override
	protected int verifyParameters(ActionContext atx) throws Exception {
		con = atx.getConection();
		return 1;
	}
}
